<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/plan_summary_three_location/Plan_Summary_Single_Location.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/plan_summary_three_location/Plan_Summary_Single_Location.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Plan_Summary_Single_Location",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "分厂详情",
                name: "plan_summary_three_location/Plan_Summary_Single_Location",
                newTabEdit: false,
                url: "/Plan_Summary_Single_Location/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductId":"","ProductIdInside":"","Location":"","InventoryMaterial":"","InventoryBlank":"","InventoryProcessCheck":"","InventoryFinal":"","Type":"","Order":"","OrderCount":"","OrderFinish":"","OrderUnfinish":"","InventoryCount":"","Plan34Week":"","Plan35Week":"","Plan36Week":"","Plan37Week":"","Plan38Week":"","Plan39Week":"","Plan40Week":"","Plan41Week":"","Plan42Week":"","Plan43Week":"","Plan44Week":"","Plan45Week":"","Plan46Week":"","Plan47Week":"","Plan48Week":"","Plan49Week":"","Plan50Week":"","Plan51Week":"","Plan52Week":"","Plan53Week":""});
            const editFormOptions = ref([[{"title":"产品代码","field":"ProductId"},
                               {"title":"内部代码","field":"ProductIdInside"},
                               {"title":"厂区","field":"Location"}],
                              [{"title":"内部盘点-材料","field":"InventoryMaterial","type":"decimal"},
                               {"title":"内部盘点-毛坯","field":"InventoryBlank","type":"decimal"},
                               {"title":"内部盘点-加工-检验","field":"InventoryProcessCheck","type":"decimal"},
                               {"title":"内部盘点-成品","field":"InventoryFinal","type":"decimal"},
                               {"title":"分类","field":"Type"}],
                              [{"title":"订单号","required":true,"field":"Order"},
                               {"title":"订单数量","field":"OrderCount","type":"decimal"},
                               {"title":"已交订单","field":"OrderFinish","type":"decimal"},
                               {"title":"未交订单","field":"OrderUnfinish","type":"decimal"},
                               {"title":"存货盘点","field":"InventoryCount","type":"decimal"}],
                              [{"title":"34周交付计划","field":"Plan34Week","type":"decimal"},
                               {"title":"35周交付计划","field":"Plan35Week","type":"decimal"},
                               {"title":"36周交付计划","field":"Plan36Week","type":"decimal"},
                               {"title":"37周交付计划","field":"Plan37Week","type":"decimal"}],
                              [{"title":"38周交付计划","field":"Plan38Week","type":"decimal"},
                               {"title":"39周交付计划","field":"Plan39Week","type":"decimal"},
                               {"title":"40周交付计划","field":"Plan40Week","type":"decimal"},
                               {"title":"41周交付计划","field":"Plan41Week","type":"decimal"}],
                              [{"title":"42周交付计划","field":"Plan42Week","type":"decimal"},
                               {"title":"43周交付计划","field":"Plan43Week","type":"decimal"},
                               {"title":"44周交付计划","field":"Plan44Week","type":"decimal"},
                               {"title":"45周交付计划","field":"Plan45Week","type":"decimal"}],
                              [{"title":"46周交付计划","field":"Plan46Week","type":"decimal"},
                               {"title":"47周交付计划","field":"Plan47Week","type":"decimal"},
                               {"title":"48周交付计划","field":"Plan48Week","type":"decimal"},
                               {"title":"49周交付计划","field":"Plan49Week","type":"decimal"}],
                              [{"title":"50周交付计划","field":"Plan50Week","type":"decimal"},
                               {"title":"51周交付计划","field":"Plan51Week","type":"decimal"},
                               {"title":"52周交付计划","field":"Plan52Week","type":"decimal"},
                               {"title":"53周交付计划","field":"Plan53Week","type":"decimal"}]]);
            const searchFormFields = ref({"ProductId":"","ProductIdInside":"","Location":"","Order":""});
            const searchFormOptions = ref([[{"title":"内部代码","field":"ProductIdInside","type":"like"},{"title":"产品代码","field":"ProductId","type":"like"},{"title":"订单号","field":"Order","type":"like"},{"title":"厂区","field":"Location","type":"like"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdInside",title:"内部代码",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Location",title:"厂区",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn4Week",title:"4周内成品需求数",type:"decimal",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn5To9Week",title:"5-9周成品需求数",type:"decimal",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryMaterial",title:"内部盘点-材料",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryBlank",title:"内部盘点-毛坯",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryProcessCheck",title:"内部盘点-加工-检验",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryFinal",title:"内部盘点-成品",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Type",title:"分类",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Order",title:"订单号",type:"string",width:150,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderCount",title:"订单数量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"OrderFinish",title:"已交订单",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"OrderUnfinish",title:"未交订单",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryCount",title:"存货盘点",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan34Week",title:"34周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan35Week",title:"35周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan36Week",title:"36周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan37Week",title:"37周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan38Week",title:"38周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan39Week",title:"39周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan40Week",title:"40周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan41Week",title:"41周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan42Week",title:"42周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan43Week",title:"43周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan44Week",title:"44周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan45Week",title:"45周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan46Week",title:"46周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan47Week",title:"47周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan48Week",title:"48周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan49Week",title:"49周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Plan50Week",title:"50周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Plan51Week",title:"51周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Plan52Week",title:"52周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Plan53Week",title:"53周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
